package gameObjects;

public class Castle extends GameObject {

	protected int hp;
	protected int maxHp;
	protected int infantryPrice;
	protected int cavalryPrice;
	protected int pikemanPrice;
	protected int gold;

	public Castle(){

	}

	public Castle (String player){
		this.player=player;

		init();
	}

	private void init(){
		this.objectType="CASTLE";
		if ( this.player.equalsIgnoreCase("BLUE") ){
			imageString="units\\blue\\castle.png";
		}
		else{
			imageString="units\\orange\\castle.png";
		}

		hp= 50;
		maxHp = 50;
		infantryPrice=10;
		cavalryPrice=30;
		pikemanPrice=20;
		gold = 100;

	}


	public int getHp() {
		return hp;
	}

	public void setHp(int hp) {
		this.hp = hp;
	}


	public int getInfantryPrice() {
		return infantryPrice;
	}

	public void setInfantryPrice(int infantryPrice) {
		this.infantryPrice = infantryPrice;
	}

	public int getCavalryPrice() {
		return cavalryPrice;
	}

	public void setCavalryPrice(int cavalryPrice) {
		this.cavalryPrice = cavalryPrice;
	}

	public int getPikemanPrice() {
		return pikemanPrice;
	}

	public void setPikemanPrice(int pikemanPrice) {
		this.pikemanPrice = pikemanPrice;
	}

	public int getGold() {
		return gold;
	}

	public void setGold(int gold) {
		this.gold = gold;
	}

	public int getMaxHp() {
		return maxHp;
	}

	public void setMaxHp(int maxHp) {
		this.maxHp = maxHp;
	}



}
